const _import =
  process.env.NODE_ENV === 'production'
    ? file => () => import('@/views/modules/' + file + '.vue')
    : file => require('@/views/modules/' + file + '.vue').default

export default [
  {
    path: 'kpi',
    component: _import('kpi/kpi'),
    name: 'kpi',
    meta: { title: '指标', noContentBox: true, permission: 'front:page:kpi' }
  },
  {
    path: 'kpi/atom',
    component: _import('kpi/atom/kpi-atom'),
    name: 'kpi-atom',
    meta: { title: '原子指标', noContentBox: true, permission: 'front:page:kpi' }
  },
  {
    path: 'kpi/devired',
    component: _import('kpi/devired/kpi-devired'),
    name: 'kpi-devired',
    meta: { title: '衍生指标', noContentBox: true, permission: 'front:page:kpi' }
  },
  {
    path: 'kpi/actual',
    component: _import('kpi/actual/kpi-actual'),
    name: 'kpi-actual',
    meta: { title: '实时指标', noContentBox: true, permission: 'front:page:kpi' }
  },
  {
    path: 'kpi/params',
    component: _import('kpi/kpi-params'),
    name: 'kpi-params',
    meta: { title: '指标配置' }
  },
  {
    path: 'kpi/params/bussiness',
    component: _import('kpi/bussiness/bussiness-config'),
    name: 'kpi-bussiness',
    meta: { title: '业务修饰词配置', noContentBox: true, permission: 'front:page:kpi' }
  }
]
